package maple.thelittleredbook.recommendation.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 内容特征实体类
 */
@Data
@TableName("content_features")
public class ContentFeature {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("content_id")
    private Long contentId;

    @TableField("task_status")
    private String taskStatus;

    @TableField("task_started_at")
    private LocalDateTime taskStartedAt;

    @TableField("task_completed_at")
    private LocalDateTime taskCompletedAt;

    @TableField("retry_count")
    private Integer retryCount;

    @TableField("error_message")
    private String errorMessage;

    @TableField("dim1")
    private BigDecimal dim1;

    @TableField("dim2")
    private BigDecimal dim2;

    @TableField("dim3")
    private BigDecimal dim3;

    @TableField("dim4")
    private BigDecimal dim4;

    @TableField("dim5")
    private BigDecimal dim5;

    @TableField("dim6")
    private BigDecimal dim6;

    @TableField("dim7")
    private BigDecimal dim7;

    @TableField("dim8")
    private BigDecimal dim8;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}